/* 考试科目选择器 - 清爽简洁风格 */

/* 科目头部 */
.subject-header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	background: #fff;
	padding: 24rpx 30rpx;
	margin: 20rpx 16rpx 0;
	border-radius: 16rpx 16rpx 0 0;
	box-shadow: 0 2rpx 12rpx rgba(0, 0, 0, 0.06);
	border: 1rpx solid #f0f0f0;
	border-bottom: none;
}

.subject-name {
	font-size: 32rpx;
	font-weight: 600;
	color: #333;
}

.switch-icon {
	font-size: 28rpx;
	color: #999;
	transition: color 0.3s ease;
}

.subject-header:active .switch-icon {
	color: #0081ff;
}

/* 科目标签栏 */
.subject-tabs-wrapper {
	display: flex;
	align-items: center;
	background: #fff;
	margin: 0 16rpx 16rpx;
	border-radius: 0 0 16rpx 16rpx;
	padding: 16rpx 0;
	box-shadow: 0 2rpx 12rpx rgba(0, 0, 0, 0.06);
	border: 1rpx solid #f0f0f0;
	border-top: none;
}

.subject-tabs-scroll {
	flex: 1;
	overflow: hidden;
}

.subject-tabs-container {
	display: flex;
	padding: 0 16rpx;
	gap: 16rpx;
}

.subject-tab {
	padding: 12rpx 24rpx;
	border-radius: 10rpx;
	background: #f8f9fa;
	color: #666;
	font-size: 26rpx;
	white-space: nowrap;
	transition: all 0.3s ease;
	border: 1rpx solid transparent;
}

.subject-tab.active {
	background: linear-gradient(135deg, #0081ff, #1cbbb4);
	color: #fff;
	font-weight: 500;
	transform: scale(1.05);
	box-shadow: 0 4rpx 12rpx rgba(0, 129, 255, 0.3);
}

.filter-icon-container {
	flex-shrink: 0;
	padding: 0 16rpx;
	display: flex;
	align-items: center;
	justify-content: center;
}

.filter-icon {
	background: #f8f9fa;
	border-radius: 12rpx;
	width: 56rpx;
	height: 56rpx;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 30rpx;
	transition: all 0.3s ease;
	border: 1rpx solid #eee;
}

.filter-icon:active {
	background: #ff6b35;
	color: #fff !important;
	transform: scale(0.95);
}

/* 轮播图 */
.swiper-container {
	padding: 0;
	margin: 16rpx;
	border-radius: 16rpx;
	background: #fff;
	overflow: hidden;
}

.swiper {
	height: 300rpx;
}

.swiper-image {
	width: 100%;
	height: 100%;
	border-radius: 16rpx;
}

/* 统计数据 */
.statistics-container {
	padding: 24rpx 30rpx;
	margin: 16rpx;
	border-radius: 16rpx;
	background: #fff;
	box-shadow: 0 2rpx 12rpx rgba(0, 0, 0, 0.06);
	border: 1rpx solid #f0f0f0;
}

.statistics-content {
	display: flex;
	align-items: center;
	justify-content: space-around;
}

.statistics-item {
	display: flex;
	flex-direction: column;
	align-items: center;
	flex: 1;
}

.statistics-number {
	font-size: 40rpx;
	font-weight: 700;
	color: #0081ff;
	margin-bottom: 8rpx;
	line-height: 1;
}

.statistics-label {
	font-size: 24rpx;
	color: #666;
	font-weight: 400;
}

.statistics-divider {
	width: 1rpx;
	height: 32rpx;
	background: #eee;
}

/* 题库分类 */
.question-category-container {
	margin: 16rpx;
	padding: 20rpx;
	border-radius: 16rpx;
	background: #fff;
	box-shadow: 0 2rpx 12rpx rgba(0, 0, 0, 0.06);
	border: 1rpx solid #f0f0f0;
}

.category-grid {
	display: flex;
	flex-wrap: wrap;
	gap: 16rpx 0;
}

.category-grid-item {
	width: 25%;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	padding: 16rpx 8rpx;
	transition: all 0.3s ease;
	box-sizing: border-box;
	border-radius: 12rpx;
}

.category-grid-item:active {
	transform: scale(0.92);
	background: #f8f9fa;
}

.category-icon {
	width: 64rpx;
	height: 64rpx;
	margin-bottom: 12rpx;
	border-radius: 12rpx;
	filter: drop-shadow(0 2rpx 8rpx rgba(0, 0, 0, 0.1));
}

.category-name {
	font-size: 24rpx;
	color: #333;
	font-weight: 500;
	text-align: center;
	line-height: 1.3;
}

/* 响应式适配 */
@media screen and (max-width: 750rpx) {
	.category-grid {
		gap: 12rpx 0;
	}
	
	.category-grid-item {
		padding: 12rpx 6rpx;
	}
	
	.category-icon {
		width: 56rpx;
		height: 56rpx;
	}
	
	.category-name {
		font-size: 22rpx;
	}
}

/* 活跃状态优化 */
.subject-header:active {
	transform: scale(0.98);
	box-shadow: 0 1rpx 6rpx rgba(0, 0, 0, 0.08);
}

.subject-tab:active {
	transform: scale(0.95);
}

/* 加载状态 */
.category-icon.loading {
	opacity: 0.6;
	animation: pulse 1.5s ease-in-out infinite;
}

@keyframes pulse {
	0%, 100% { opacity: 0.6; }
	50% { opacity: 0.9; }
}